package com.jobpass.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jobpass.common.model.Admin;

import java.util.List;

public interface AdminService extends IService<Admin> {

    /**
     * 查询所有Admin
     * @return
     */
    List<Admin> FindAllAdmin ();

    /**
     * 根据ID查询admin
     *
     */
    Admin FindAdminById(Long id);

    /**
     * 根据id删除Admin
     */
    int DeleteAdminById(Long id);

    /**
     * 根据id修改Admin Id 和 其他修改项
     */
    int UpdateAdminById(Admin admin);

    /**
     * 添加admin
     */
    int SavaAdmin(Admin admin);


}
